package com.hqd.test.observe;

import lombok.Data;

import java.util.Observable;

@Data
public class GieGie extends Observable {
    private String name = "ikun";
    private String msg;

    public void doSomething(String msg) {
        this.msg = msg;
        System.out.println(String.format("GieGie:%s 正在 '%s'", name, msg));
        setChanged();
        notifyObservers();
    }
}
